home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
class
/
numbary.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-04-16
|
1KB
|
64 lines
/* Copyright (c) 1993-1996 Algorithms Corporation */
/* All rights reserved. */
/* This file automatically generated by dpp - do not edit */
#define DPP_STRATEGY 2
#define DPP_FASTWIDE 0
#define CLASS NumberArray_c
#define ivType NumberArray_iv_t
#include "generics.h"
object NumberArray_c;
#line 27 "numbary.c"
objrtn NumberArray_initialize(void)
{
static CRITICALSECTION cs;
static int volatile once = 0;
ENTERCRITICALSECTION(_CI_CS_);
if (!once) {
INITIALIZECRITICALSECTION(cs);
once = 1;
}
LEAVECRITICALSECTION(_CI_CS_);
ENTERCRITICALSECTION(cs);
if (NumberArray_c) {
LEAVECRITICALSECTION(cs);
return NumberArray_c;
}
INHIBIT_THREADER;
Array_initialize();
if (NumberArray_c) {
ENABLE_THREADER;
LEAVECRITICALSECTION(cs);
return NumberArray_c;
}
NumberArray_c = gNewClass(Class, "NumberArray", 0, 0, Array, END);
ENABLE_THREADER;
LEAVECRITICALSECTION(cs);
return NumberArray_c;
}